// https://umijs.org/config/
import { defineConfig } from 'umi';

export default defineConfig({
  plugins: [
    // https://github.com/zthxxx/react-dev-inspector
    'react-dev-inspector/plugins/umi/react-inspector',
  ],
  scripts: [
    // { content: `var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || []; console.log(jsonpArray)` },
    { src: '/uee-sdk/index.js' },
    // {content:`window["webpackJsonp"]=jsonpArray;`
    // }
  ],
  // https://github.com/zthxxx/react-dev-inspector#inspector-loader-props
  inspectorConfig: {
    exclude: [],
    babelPlugins: [],
    babelOptions: {},
  },
  // webpack5: {
  //   // lazyCompilation: {},
  // },
});
